<?php
function smarty_function_pow($params, &$smarty)
{	
	$x	= isset($params['x']) ? $params['x'] : 0;
	$y	= isset($params['y']) ? $params['y'] : 0;	
	if ($x > 0) {
		return pow($x, $y);
	}
	return 0;
}
?>